/**
 * @projectName study_java
 * @package Builder
 * @className Builder.ConcreteBuilder1
 */
package Builder;

/**
 * ConcreteBuilder1
 * @description 具体建造者类
 * @author answer_wx
 * @date 2022/6/28 10:24
 * @version 1.0
 */
public class ConcreteBuilder1 implements IBuilder {

    private Product product = new Product();

    @Override
    public void buildPartA() {
        product.add("部件A");
    }

    @Override
    public void buildPartB() {
        product.add("部件B");
    }

    @Override
    public void buildPartC() {
        product.add("部件C");
    }

    @Override
    public Product showProduct() {
        return product;
    }
}